home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 627 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. From: thp@cs.ucr.edu (Tom Payne)
  2. Message-ID: <4hftpt$r2c@galaxy.ucr.edu>
  3. X-Original-Date: 4 Mar 1996 23:19:25 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 05 Mar 96 02:24:22 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Return-Path: <daemon@migs.UCAR.EDU>
  8. Newsgroups: comp.std.c++
  9. Subject: Re: constant-expression extension
  10. Organization: University of California, Riverside
  11. References: <4h775a$m4s@ugress.uib.no>
  12. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMTul4+EDnX0m9pzZAQGrTAF/Zh5LB68xC3qbDUSARDrtEmglkv7G4lwP
  15.     WhYUsIeWfrGF8glEk9RsoNfSNTL0djC/
  16.     =AKey
  17.  
  18. Igor Boukanov (boukanov@afrodite.fi.uib.no) wrote:
  19. :    My proposal is to change definition of the 
  20. : "integral constant-expression"[5.19] to something like this:
  21. : An    integral   constant-expression is an expression that can be calculated
  22. : at the compilation phase. 
  23. [...]
  24. : So what do you think about this?
  25.  
  26. With appropriate restrictions on which in-line functions are allowed
  27. in these expressions, it could be very convenient.  Note, however,
  28. that compile-time calculability, like calculability in general, is
  29. recursively undecidable, when you allow functions with recursion or
  30. unbounded loops.
  31.  
  32. Tom Payne (thp@cs.ucr.edu)
  33. ---
  34. [ To submit articles: try just posting with your news-reader.
  35.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  36.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  37.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  38.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  39. ]
  40.